﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Dao
{
    public interface IDao<E> where E : new()
    {
        E GetById(object id);

        E GetByField(string field, object value);

        IList<E> GetAllByField(string field, object value);

        E GetByFieldLike(string field, string value);

        IList<E> GetAllByFieldLike(string field, string value);

        int GetCount(IDictionary<string, object> param);

        IList<E> Get(IDictionary<string, object> param, int pageIndex, int pageSize);

        DateTime GetDBMinTime();

        bool IsDBMinTime(DateTime time);
    }
}
